<template>
    <div class="main">
        <router-view :key="key"/>
    </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  computed: {
    key() {
      return this.$route.path;
    }
  }
};
</script>
<style>
.main {
    padding: 10px;
    background: #fff;
    border-radius: 4px;
}
</style>